<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/kaoqin.css"/>
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/main.css"/>
    <!--<link rel="stylesheet" type="text/css" href="/Public/Admin/css/personal.css"/>-->
</block>
<block name="content" >
    <section class="layui-larry-box mian-page page-attendanceStatistics">
        <div class="larry-personal">
            <div class="layui-tab">
                <div class="layui-tab-content larry-personal-body clearfix mylog-info-box">
                    <div class="layui-tab-item layui-field-box layui-show">
			<table class="layui-table setTabBg" lay-skin="line">
				<thead>
					<tr>
						<th>日期</th>
						<th>姓名</th>
						<th>部门</th>
						<th>08:30:00(上班)</th>
						<th>17:30:00(下班)</th>
					</tr>
				</thead>
				<tbody>
                                    <notempty>
                                        <foreach name='users_tem' item='attend' key='key'>
                                            <tr>
                                                <td>{$key}({$key|get_week})</td>
                                                <td>{$user_name}</td>
                                                <td>{$dept_name}</td>
                                                <td <if condition='$attend["has_duty_day"] eq 0'>style="color:red"</if>>{$attend['registers'][1]}</td>
                                                <td <if condition='($attend["has_duty_day"] eq 0) or ($attend["registers"][2] eq "未登记")'>style="color:red"</if>>{$attend['registers'][2]}</td>
                                            <tr>
                                        </foreach>
                                    </notempty>
				</tbody>
			</table>
		<div class="layui-block">共{$count}条数据</div>
                        <div class="larry-table-page clearfix">
                            <input type='hidden' id="followUrl" value="{:U('attentPlan')}">
                            <!--<a href="javascript:;" class="layui-btn layui-btn-small"><i class="iconfont icon-shanchu1"></i>删除</a>-->
                            <div id="page" class="page">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/attend.js"></script>
    <script type="text/javascript">
        $(initAttend());
    </script>
</block>